//初始患者信息显示区域
function initPatientInfoTable(patientInfo){
	if(patientInfo){
		$('#patientInfo_table').find('span').each(function(index,item){
			var bindname = $(item).attr('bindname');
			if(bindname){
				$(item).html(transItemCode(bindname,patientInfo[bindname]));
			}
		})
	}
}

//初始化表单项
function initPatientInfoForm(patientInfo){
	$('#patientInfoForm').validation();
	if(patientInfo){
		$('#patientInfoForm').bindData(patientInfo);
		//初始化性别下拉框
		genDictSelect('sexInfo','sex',patientInfo.sex);
		//初始化年龄单位下拉框
		genDictSelect('ageunitInfo','ageunit',patientInfo.ageunit);
	}else{
		//初始化性别下拉框
		genDictSelect('sexInfo','sex','1');
		//初始化年龄单位下拉框
		genDictSelect('ageunitInfo','ageunit','1');
	}
}